<template>
  <div class="backgroundHome">
    <div class="mainbox" style="width: 100%; height: 100%">
      <div style="width: 90%; margin: 0 auto">
        <el-row :gutter="30" style="margin-top: 30px">
          <el-col :span="8">
            <div class="statistics" style="background: #409eff">
              <div class="title">
                <p>就诊统计</p>
                <el-tag size="mini" type="success">实时</el-tag>
              </div>
              <div class="num">7</div>
              <div class="tip">今日门诊总人数</div>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="statistics" style="background: #e6a23c">
              <div class="title">
                <p>住院统计</p>
                <el-tag size="mini" type="info">实时</el-tag>
              </div>
              <div class="num">7</div>
              <div class="tip">今日住院总人数</div>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="statistics" style="background: #909399">
              <div class="title">
                <p>死亡统计</p>
                <el-tag size="mini" type="info">实时</el-tag>
              </div>
              <div class="num">7</div>
              <div class="tip">今日死亡总人数</div>
            </div>
          </el-col>
        </el-row>
      </div>
      <h1 style="text-align: center; margin-top: 30px">
        湖南省中医院门诊医生排班表
      </h1>
      <div style="margin-top: 20px">
        <el-table
          :data="tableData"
          height="380"
          border
          style="width: 90%; margin: 0 auto"
        >
          <el-table-column prop="id" label="ID" sortable width="70">
          </el-table-column>
          <el-table-column prop="department" label="科室名称">
          </el-table-column>
          <el-table-column prop="amount1" label="周一"> </el-table-column>
          <el-table-column prop="amount2" label="周二"> </el-table-column>
          <el-table-column prop="amount3" label="周三"> </el-table-column>
          <el-table-column prop="amount4" label="周四"> </el-table-column>
          <el-table-column prop="amount5" label="周五"> </el-table-column>
          <el-table-column prop="amount6" label="周六"> </el-table-column>
          <el-table-column prop="amount7" label="周日"> </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "backgroundHome",
  data() {
    return {
      tableData: [
        {
          id: "",
          department: "日 期",
          amount1: "2023-4-18",
          amount2: "19日",
          amount3: "20日",
          amount4: "21日",
          amount5: "22日",
          amount6: "23日",
          amount7: "24日",
        },
        {
          id: "001",
          department: "内科门诊1（心内1）",
          amount1: "郑忠良",
          amount2: "李 清",
          amount3: "孔令建",
          amount4: "孔令建",
          amount5: "郑忠良",
          amount6: "孔令建",
          amount7: "孔令建",
        },
        {
          id: "002",
          department: "内科门诊2（神经）",
          amount1: "张 涛",
          amount2: "张秀云",
          amount3: "张 娟",
          amount4: "李 茹",
          amount5: "刘秋华",
          amount6: "刘仰镇",
          amount7: "陈国防",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
        {
          id: "003",
          department: "内科门诊3（心内2）",
          amount1: "田 锋",
          amount2: "刘常海",
          amount3: "张尊磊",
          amount4: "张 燕",
          amount5: "张尊磊",
          amount6: "石永华",
          amount7: "石永华",
        },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped>
.backgroundHome {
  width: 100%;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
.el-row {
  padding: 0 9px;
}
.statistics {
  color: white;
  height: 100px;
  border-radius: 4px;
  padding: 0 8px;
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
p {
  font-size: 13px;
  font-weight: bold;
}
.num {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.tip {
  font-size: 12px;
}
</style>